<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
</div>
</div>
<?php if(empty($topic) || ($topic['usefooter'])) { $focusid = getfocus_rand($_G['basescript']);?><?php if($focusid !== null) { $focus = $_G['cache']['focus']['data'][$focusid];?><?php $focusnum = count($_G['setting']['focus'][$_G['basescript']]);?><div class="focus" id="sitefocus">
  <div class="bm">
    <div class="bm_h cl"> <a href="javascript:;" onclick="setcookie('nofocus_<?php echo $_G['basescript'];?>', 1, <?php echo $_G['cache']['focus']['cookie'];?>*3600);$('sitefocus').style.display='none'" class="y" title="关闭">关闭</a>
      <h2> 
        <?php if($_G['cache']['focus']['title']) { ?><?php echo $_G['cache']['focus']['title'];?><?php } else { ?>站长推荐<?php } ?> 
        <span id="focus_ctrl" class="fctrl"><img src="<?php echo IMGDIR;?>/pic_nv_prev.gif" alt="上一条" title="上一条" id="focusprev" class="cur1" onclick="showfocus('prev');" /> <em><span id="focuscur"></span>/<?php echo $focusnum;?></em> <img src="<?php echo IMGDIR;?>/pic_nv_next.gif" alt="下一条" title="下一条" id="focusnext" class="cur1" onclick="showfocus('next')" /></span> </h2>
    </div>
    <div class="bm_c" id="focus_con"></div>
  </div>
</div><?php $focusi = 0;?> <?php if(isset($_G['setting']['focus'][$_G['basescript']]) && is_array($_G['setting']['focus'][$_G['basescript']])) foreach($_G['setting']['focus'][$_G['basescript']] as $id) { ?><div class="bm_c" style="display: none" id="focus_<?php echo $focusi;?>">
  <dl class="xld cl bbda">
    <dt><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2" target="_blank"><?php echo $_G['cache']['focus']['data'][$id]['subject'];?></a></dt>
    <?php if($_G['cache']['focus']['data'][$id]['image']) { ?>
    <dd class="m"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" target="_blank"><img src="<?php echo $_G['cache']['focus']['data'][$id]['image'];?>" alt="<?php echo $_G['cache']['focus']['data'][$id]['subject'];?>" /></a></dd>
    <?php } ?>
    <dd><?php echo $_G['cache']['focus']['data'][$id]['summary'];?></dd>
  </dl>
  <p class="ptn cl"><a href="<?php echo $_G['cache']['focus']['data'][$id]['url'];?>" class="xi2 y" target="_blank">查看 &raquo;</a></p>
</div><?php $focusi ++;?> 
<?php } ?> 

<script type="text/javascript">
var focusnum = <?php echo $focusnum;?>;
if(focusnum < 2) {
$('focus_ctrl').style.display = 'none';
}
if(!$('focuscur').innerHTML) {
var randomnum = parseInt(Math.round(Math.random() * focusnum));
$('focuscur').innerHTML = Math.max(1, randomnum);
}
showfocus();
var focusautoshow = window.setInterval('showfocus(\'next\', 1);', 5000);
</script> 

<?php } ?> 

<?php if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1) { ?>

<div class="focus patch" id="patch_notice"></div>

<?php } ?> <?php echo adshow("footerbanner/wp a_f/1");?><?php echo adshow("footerbanner/wp a_f/2");?><?php echo adshow("footerbanner/wp a_f/3");?> <?php echo adshow("float/a_fl/1");?><?php echo adshow("float/a_fr/2");?> <?php echo adshow("couplebanner/a_fl a_cb/1");?><?php echo adshow("couplebanner/a_fr a_cb/2");?> <?php echo adshow("cornerbanner/a_cn");?> 

<style type="text/css">
#footer {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    z-index: 999;
    border-top: 1px solid #EEEEEE;
    background: #fff;
}
#footer li {
    width: 20%;
    text-align: center;
    float: left;
}
#footer li a {
    width: 100%;
    display: block;
    color: #555555;
}
#footer li p {
    overflow: hidden;
    font-size: 12px;
    height: 16px;
    line-height: 16px;
    color: #555555;
}
#footer li i {
    display: block;
    height: 30px;
    font-size: 24px;
    line-height: 26px;
}
#footer .post_b {
display: inline-block;
    background: url(template/quater_2023_dji/src/post.svg) no-repeat center center #FFFFFF;
    background-size: 50px 50px;
    width: 50px;
    height: 50px;
    margin-top: -10px;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0px -2px 1px rgb(0 0 0 / 8%);
}
#footer li i.icon_b1 { background: url(template/quater_2023_dji/src/icon_b1.svg) no-repeat center center}
#footer li a.active i.icon_b1 { background: url(template/quater_2023_dji/src/icon_b1_on.svg) no-repeat center center}
#footer li i.icon_b2 { background: url(template/quater_2023_dji/src/icon_b2.svg) no-repeat center center}
#footer li a.active i.icon_b2 { background: url(template/quater_2023_dji/src/icon_b2_on.svg) no-repeat center center}
#footer li i.icon_b3 { background: url(template/quater_2023_dji/src/icon_b3.svg) no-repeat center center}
#footer li a.active i.icon_b3 { background: url(template/quater_2023_dji/src/icon_b3_on.svg) no-repeat center center}
#footer li i.icon_b4 { background: url(template/quater_2023_dji/src/icon_b4.svg) no-repeat center center}
#footer li a.active i.icon_b4 { background: url(template/quater_2023_dji/src/icon_b4_on.svg) no-repeat center center}
@media (max-width: 820px) {
#footer { display: block !important}
}
</style>
<div id="footer" class="cl" style="display: none;">
    <ul>
        <li>
        	<a href="portal.php" class="<?php if(CURSCRIPT == 'portal' && CURMODULE == 'index') { ?>active<?php } ?>">
            	<i class="icon_b1"></i>
                <p>首页</p>
</a>
</li>		

        <li>
        	<a href="#">
            	<i class="icon_b2"></i>
                <p>资讯</p>
</a>
</li>

<?php if($_G['uid']) { ?>
<li><div class="post_b"><a href="forum.php?mod=misc&amp;action=nav" onclick="showWindow('nav', this.href, 'get', 0)" style="display: block; width: 50px; height: 50px;"></a></div></li>
<?php } else { ?>
<li><div class="post_b"><a href="member.php?mod=logging&amp;action=login" style="display: block; width: 50px; height: 50px;"></a></div></li>
        <?php } ?>
        <li>
        	<a href="forum.php" class="<?php if(CURSCRIPT == 'forum' && CURMODULE == 'index') { ?>active<?php } ?>">
            	<i class="icon_b3"></i>
                <p>社区</p>
</a>
</li>

        <li class="icon_msg">
        <?php if($_G['uid']) { ?>
                	<a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>&amp;do=profile&amp;mycenter=1" class="<?php if(CURSCRIPT == 'home') { ?>active<?php } ?>">
            	<i class="icon_b4"></i>
                                <p>我的</p>
</a>
        <?php } else { ?>
                	<a href="member.php?mod=logging&amp;action=login" class="<?php if(CURSCRIPT == 'home') { ?>active<?php } ?>">
            	<i class="icon_b4"></i>
                                <p>我的</p>
</a>
        <?php } ?>
</li>
    </ul>
</div>

<?php if(!empty($_G['setting']['pluginhooks']['global_footer'])) echo $_G['setting']['pluginhooks']['global_footer'];?>

<div class="footer_box cl" style="width: 100%; height: 60px;">
<div class="footer-style" style="height: 31px; padding-top: 19px;"><div class="wp cl"><div class="footer-first">&copy; <a href="http://www.comsenz.com" target="_blank" style="margin: 0;" class="display_none">Discuz Team.</a> Powered by <a href="https://www.discuz.vip" target="_blank" style="margin: 0;">Discuz!</a> <?php if($_G['setting']['statcode']) { ?><?php echo $_G['setting']['statcode'];?><?php } ?><span style="margin-left: 7px;">|</span><a href="about#section-2" target="_blank" rel="noopener noreferrer">隐私政策</a><span>|</span><a href="about" target="_blank" rel="noopener noreferrer">关于我们</a><?php if(!empty($_G['setting']['pluginhooks']['global_footerlink'])) echo $_G['setting']['pluginhooks']['global_footerlink'];?> </div><div class="footer-second"><?php if($_G['setting']['icp']) { ?><a target="_blank"><?php echo $_G['setting']['icp'];?></a><?php } ?><a href="#" target="_blank" rel="noopener noreferrer" style="margin-left: 16px;" class="display_none">粤公安网备1101080203xxxx</a></div></div></div>
</div><?php updatesession();?> 

<?php if($_G['uid'] && $_G['group']['allowinvisible']) { ?>
<script type="text/javascript">
var invisiblestatus = '<?php if($_G['session']['invisible']) { ?>隐身<?php } else { ?>在线<?php } ?>';
var loginstatusobj = $('loginstatusid');
if(loginstatusobj != undefined && loginstatusobj != null) loginstatusobj.innerHTML = invisiblestatus;
</script> 
<?php } } ?> 



<?php if(!$_G['setting']['bbclosed'] && !$_G['member']['freeze'] && !$_G['member']['groupexpiry']) { ?> 
<?php if($_G['uid'] && !isset($_G['cookie']['checkpm'])) { ?> 
<script src="home.php?mod=spacecp&ac=pm&op=checknewpm&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script> 
<?php } ?> 



<?php if($_G['uid'] && helper_access::check_module('follow') && !isset($_G['cookie']['checkfollow'])) { ?> 
<script src="home.php?mod=spacecp&ac=follow&op=checkfeed&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script> 
<?php } ?> 

<?php if(!isset($_G['cookie']['sendmail'])) { ?> 
<script src="home.php?mod=misc&ac=sendmail&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script> 
<?php } ?> 

<?php if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkpatch'])) { ?> 
<script src="misc.php?mod=patch&action=checkpatch&rand=<?php echo $_G['timestamp'];?>" type="text/javascript"></script> 
<?php } ?> 
<?php } ?> 

<?php if($_GET['diy'] == 'yes') { ?> 
<?php if(check_diy_perm($topic) && (empty($do) || $do != 'index')) { ?> 
<script src="<?php echo $_G['setting']['jspath'];?>common_diy.js?<?php echo VERHASH;?>" type="text/javascript"></script> 
<script src="<?php echo $_G['setting']['jspath'];?>portal_diy<?php if(!check_diy_perm($topic, 'layout')) { ?>_data<?php } ?>.js?<?php echo VERHASH;?>" type="text/javascript"></script> 

<?php } ?> 
<?php if($space['self'] && CURMODULE == 'space' && $do == 'index') { ?> 
<script src="<?php echo $_G['setting']['jspath'];?>common_diy.js?<?php echo VERHASH;?>" type="text/javascript"></script> 
<script src="<?php echo $_G['setting']['jspath'];?>space_diy.js?<?php echo VERHASH;?>" type="text/javascript"></script> 
<?php } ?> 

<?php } ?> 

<?php if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && $_G['setting']['showpatchnotice'] == 1) { ?> 

<script type="text/javascript">patchNotice();</script> 

<?php } ?> 

<?php if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && empty($_G['cookie']['pluginnotice'])) { ?>

<div class="focus plugin" id="plugin_notice"></div>

<script type="text/javascript">pluginNotice();</script> 

<?php } ?> 

<?php if(!$_G['setting']['bbclosed'] && !$_G['member']['freeze'] && !$_G['member']['groupexpiry'] && $_G['setting']['disableipnotice'] != 1 && $_G['uid'] && !empty($_G['cookie']['lip'])) { ?>

<div class="focus plugin" id="ip_notice"></div>

<script type="text/javascript">ipNotice();</script> 

<?php } ?> 

<?php if($_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G['uid']]) || $_G['cookie']['promptstate_'.$_G['uid']] != $_G['member']['newprompt']) && $_GET['do'] != 'notice') { ?> 

<script type="text/javascript">noticeTitle();</script> 

<?php } ?> 



<?php if(($_G['member']['newpm'] || $_G['member']['newprompt']) && empty($_G['cookie']['ignore_notice'])) { ?> 

<script src="<?php echo $_G['setting']['jspath'];?>html5notification.js?<?php echo VERHASH;?>" type="text/javascript"></script> 

<script type="text/javascript">

var h5n = new Html5notification();

if(h5n.issupport()) {

<?php if($_G['member']['newpm'] && $_GET['do'] != 'pm') { ?>

h5n.shownotification('pm', '<?php echo $_G['siteurl'];?>home.php?mod=space&do=pm', '<?php echo avatar($_G['uid'],'small',true);?>', '新的短消息', '有新的短消息，快去看看吧');

<?php } if($_G['member']['newprompt'] && $_GET['do'] != 'notice') { if(isset($_G['member']['category_num']) && is_array($_G['member']['category_num'])) foreach($_G['member']['category_num'] as $key => $val) { $noticetitle = lang('template', 'notice_'.$key);?>h5n.shownotification('notice_<?php echo $key;?>', '<?php echo $_G['siteurl'];?>home.php?mod=space&do=notice&view=<?php echo $key;?>', '<?php echo avatar($_G['uid'],'small',true);?>', '<?php echo $noticetitle;?> (<?php echo $val;?>)', '有新的提醒，快去看看吧');

<?php } } ?>

}

</script> 

<?php } ?> <?php userappprompt();?> 

<?php if($_G['basescript'] != 'userapp') { ?>

<div id="gotop">

<a id="totop" title="">返回顶部</a>

</div>

<script type="text/javascript">
jQuery.noConflict();
jQuery(function(){
        //首先将#back-to-top隐藏
        jQuery("#totop").hide();
        //当滚动条的位置处于距顶部100像素以下时，跳转链接出现，否则消失
        jQuery(function () {
            jQuery(window).scroll(function(){
                if (jQuery(window).scrollTop()>100){
                    jQuery("#totop").fadeIn();
                }
                else
                {
                    jQuery("#totop").fadeOut();
                }
            });
            //当点击跳转链接后，回到页面顶部位置

            jQuery("#totop").click(function(){
                jQuery('body,html').animate({scrollTop:0},500);
                return false;
            });
        });
    });
</script>

<?php } ?> 

<?php if(isset($_G['makehtml'])) { ?> 

<script src="<?php echo $_G['setting']['jspath'];?>html2dynamic.js?<?php echo VERHASH;?>" type="text/javascript"></script> 

<script type="text/javascript">
var html_lostmodify = <?php echo TIMESTAMP;?>;
htmlGetUserStatus();
<?php if(isset($_G['htmlcheckupdate'])) { ?>
htmlCheckUpdate();
<?php } ?>
</script> 

<?php } ?> <?php output();?></div>

</div>

</body></html>